function AxisBoard(position_array, axis){

    //中心の座標
    this.x = position_array[0];
    this.y = position_array[1];

    // 大きさ
    this.width = 160;
    this.height = 50;

    //自分のぞくする軸
    this.axis = axis;


    this.draw = function(){

	//ダミー軸の場合は何もしない
	if(this.axis.aid == 99){
	    return false;
	}
        //this.setWidth();
        //this.setHeight();

        //影を表示
        ctx.shadowBlur = 5;
        ctx.shadowColor = 'rgba(0,0,0,0.5)';
        ctx.shadowOffsetX = 3;
        ctx.shadowOffsetY = 3;

        //軸の色にあわせて周りを縁取る
        if(this.axis.hold){
            ctx.fillStyle = 'rgba(204,204,255,0.9)';
        }else{
            ctx.fillStyle = 'rgba(255,255,255,0.9)';
        }
        ctx.lineWidth = 4;
        ctx.strokeStyle = this.axis.color;
        curvyCornerFillRect(this.x - this.width / 2, this.y - this.height / 2, this.width, this.height, this.height / 2, false);

        //軸の名前を表示する
        ctx.shadowColor = 'rgba(0,0,0,0)';
        //ctx.font = "25px 'sans serif'";
        ctx.font = "25px 'monospace'";
        ctx.fillStyle = 'rgb(100,100,100)';
        ctx.textAlign = 'center';
        ctx.textBaseline = 'middle';
        ctx.fillText(this.axis.name, this.x, this.y);

        // cellの上にマウスが乗っているかどうか
        if ((mouseX > this.x - this.width / 2 && mouseX < this.x + this.width / 2) && (mouseY > this.y - this.height / 2 && mouseY < this.y + this.height / 2)) {
            this.onmouse = true;
        }
        else {
            this.onmouse = false;
        }
        
        if(this.onmouse){
	    if(!this.axis.focus){
		//表示するテキスト
		var tooltip_text = "";
		if(this.axis.hold){
		    tooltip_text = this.axis.name + " 軸固定を解除";
		}else{
		    tooltip_text = this.axis.name + " 軸で固定"; 
		}
		tooltip = new BoardTooltip([this.x - this.width / 2, this.y], tooltip_text, true, null, null, null, null, null, this);
	    }
	}else{
        }
    };
}
